projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff53d5b
)
wayland: Avoid criticals when unsetting transient parents
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 12 Apr 2020 16:10:18 +0000
(12:10 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 12 Apr 2020 16:10:18 +0000
(12:10 -0400)
Must not check the display when parent is NULL.
gdk/wayland/gdksurface-wayland.c
patch
|
blob
|
history
diff --git
a/gdk/wayland/gdksurface-wayland.c
b/gdk/wayland/gdksurface-wayland.c
index 4269ce97a843ce795bffd3b7814140b3923c428c..06de4fa500690f415446282e1d71f6c4ce20e38e 100644
(file)
--- a/
gdk/wayland/gdksurface-wayland.c
+++ b/
gdk/wayland/gdksurface-wayland.c
@@
-3359,8
+3359,8
@@
gdk_wayland_toplevel_set_transient_for (GdkWaylandToplevel *toplevel,
GdkSurface *parent)
{
g_return_if_fail (!parent || GDK_IS_WAYLAND_TOPLEVEL (parent));
- g_return_if_fail (
gdk_surface_get_display (GDK_SURFACE (toplevel)) ==
- gdk_surface_get_display (parent));
+ g_return_if_fail (
!parent ||
+ gdk_surface_get_display (
GDK_SURFACE (toplevel)) == gdk_surface_get_display (
parent));
if (parent)
{